/* 设置整体样式 */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    font-family: "Microsoft YaHei", sans-serif;
}

/* 容器样式 */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 生日卡片样式 */
.birthday-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    animation: float 3s ease-in-out infinite;
}

/* 标题样式 */
h1 {
    color: #ff6b6b;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 蛋糕表情样式 */
.cake {
    font-size: 5rem;
    margin: 1rem 0;
    animation: bounce 2s ease infinite;
    cursor: pointer;
}

/* 消息样式 */
.message {
    color: #666;
    font-size: 1.2rem;
    margin: 1rem 0;
    line-height: 1.5;
}

/* 按钮样式 */
button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.05);
    background: #ff5252;
}

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 添加提示文字样式 */
.hint {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* 添加直接跳转链接的样式 */
.direct-link {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wishes-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.wishes-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.link-icon {
    font-size: 1.2rem;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 300px;
    animation: modalShow 0.3s ease;
}

.modal-content h3 {
    color: #333;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.qr-code {
    margin: 1rem 0;
}

.qr-code img {
    max-width: 200px;
    border-radius: 10px;
}

.modal-close {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}